Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make history playback work for "X It!" #2410

Merged
merged 3 commits into from
Sep 20, 2024
Merged

Conversation

bgoldowsky
Copy link
Contributor

As noted in PT-188129121 , a bar graph created with the "Bar Graph It!" button from a table did not have its history recorded in a way that could play back without errors. In fact this was failing for other tiles (data cards, graph) created with shared models pre-attached; changes made in response to the shared model were recorded in history before the creation of the tile, and thus would fail on replay.

This PR is more careful about the order in which these events are recorded in history. In addition, some deeper issues with the Data Card tile are addressed so that undo, redo, and history playback should now work for the "Data Card It!" case.

Copy link

codecov bot commented Sep 19, 2024

Codecov Report

Attention: Patch coverage is 89.65517% with 6 lines in your changes missing coverage. Please review.

Project coverage is 86.28%. Comparing base (e31b61e) to head (5ad1167).
Report is 15 commits behind head on master.

Files with missing lines Patch % Lines
src/plugins/data-card/data-card-content.ts 81.25% 3 Missing ⚠️
...rc/plugins/data-card/components/case-attribute.tsx 87.50% 1 Missing ⚠️
...data-card/components/data-card-toolbar-buttons.tsx 0.00% 1 Missing ⚠️
src/plugins/data-card/data-card-tile.tsx 93.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2410      +/-   ##
==========================================
- Coverage   86.29%   86.28%   -0.02%     
==========================================
  Files         739      739              
  Lines       38018    38047      +29     
  Branches     9701     9717      +16     
==========================================
+ Hits        32807    32827      +20     
- Misses       4912     4921       +9     
  Partials      299      299              
Flag Coverage Δ
cypress ?
cypress-regression 78.04% <90.56%> (-0.01%) ⬇️
cypress-smoke 27.88% <7.54%> (-0.02%) ⬇️
jest 48.74% <53.44%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

cypress bot commented Sep 19, 2024

collaborative-learning    Run #13815

Run Properties:  status check passed Passed #13815  •  git commit 5ad11671db: Add comment.
Project collaborative-learning
Branch Review 188129121-history-bug-fixes
Run status status check passed Passed #13815
Run duration 13m 49s
Commit git commit 5ad11671db: Add comment.
Committer Boris Goldowsky
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 3
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 111
View all changes introduced in this branch ↗︎

Take more care with undefined vs. falsy
@bgoldowsky bgoldowsky marked this pull request as ready for review September 19, 2024 20:47
Copy link
Member

@scytacki scytacki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just needs a comment on one line.

src/plugins/data-card/data-card-tile.tsx Show resolved Hide resolved
@scytacki scytacki merged commit 5355131 into master Sep 20, 2024
17 checks passed
@scytacki scytacki deleted the 188129121-history-bug-fixes branch September 20, 2024 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants